<template>
  <div>
    <h1>首页</h1>
    <h1 @click="fnhis()">路与陆毅</h1>
    <h2 @click="fnclassy()">小日常分类</h2>
  </div>
  <!-- get请求列表 -->
  <div>
    {{ $store.state.arrList }}
  </div>
</template>

<script lang='ts'>
import { defineComponent } from "vue";
export default defineComponent({
  created() {
    this.$store.dispatch("getLists");
  },

  methods: {
    fnhis(i) {
      console.log("跳转到文章详情");
      this.$router.push(`/main/details/${0}`);
    },
    fnclassy() {
      console.log("跳转到分类页面");
      this.$router.push("/main/classifys");
    },
  },
});
</script>
<style>
</style>